package com.example.user_service.dao;

import com.example.user_service.vo.Administrator;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserDelete
{
    /* 删除管理员
     * @author Liu
     * @date 2021/12/15 2:14
     * @param null
     * @return
     * @throws
     * @since
     */
    @Delete("delete from administrator where id = ${id}")
    int delete_Administrator(Administrator administrator);


    /* 删除我的足迹
     * @author Liu
     * @date 2021/12/17 14:46
     * @param null
     * @return
     * @throws
     * @since
     */
    @Delete("delete from my_tracks where tracks_id = ${tracks_id}")
    int delete_my_tracks(int tracks_id);
}
